package com.dnd.monitor.strategy.impl;

import com.dnd.monitor.common.annotations.DataSource;
import com.dnd.monitor.entity.DocumentNumberCalc;
import com.dnd.monitor.strategy.AreaExecuteStrategy;
import com.dnd.monitor.strategy.CommonMonitor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 安贺
 * @CreateTime 2022年08月10日 10:00:00
 * @Description: 秦皇岛执行策略
 */
@Service("qhdImpl")
@Slf4j
public class QhdStrategyImpl implements AreaExecuteStrategy {

    @Autowired
    private CommonMonitor commonMonitor;

    @Override
    @DataSource("qhd")
    public void execute(List<DocumentNumberCalc> calcList) {
        commonMonitor.monitorExecute(calcList);
    }

}